<?php
class Board_model extends MY_Model {

    function __construct(){
        parent::__construct();
    }
    
    function get_by_page($fromnum){
        $where = array();
        
        $this->db->select('b.id')
    		->from('board b')
    		->where($where);
        $this->count = $this->db->count_all_results();
        $this->db->select('b.*,m.nname as postername,m.email as posteremail')
    		->from('board b')
    		->join('member m','m.id=b.poster_id','left')
    		->order_by('b.atime desc')
    		->where($where);
    	$query = $this->db->limit(PAGEFOLLOW_SIZE,$fromnum)->get();
    	$list = $query->result();
    	return $list; 
    }
    
    
}